package com.hq.door.pojo.door;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * IdCustdept entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ID_CUSTDEPT", schema = "HUAQIAO")
public class IdCustdept implements java.io.Serializable {

	// Fields

	private Double id;
	private Double pid;
	private String fulldpid;
	private String dpcode;
	private String deptname;
	private String fullname;
	private Double dplevel;
	private Double areaid;
	private Double dpid;
	private Double datasources;
	private Timestamp opdt;
	private Double ver;

	// Constructors

	/** default constructor */
	public IdCustdept() {
	}

	/** minimal constructor */
	public IdCustdept(Double id, String fulldpid, String dpcode, Double areaid,
			Double dpid, Double datasources, Timestamp opdt) {
		this.id = id;
		this.fulldpid = fulldpid;
		this.dpcode = dpcode;
		this.areaid = areaid;
		this.dpid = dpid;
		this.datasources = datasources;
		this.opdt = opdt;
	}

	/** full constructor */
	public IdCustdept(Double id, Double pid, String fulldpid, String dpcode,
			String deptname, String fullname, Double dplevel, Double areaid,
			Double dpid, Double datasources, Timestamp opdt, Double ver) {
		this.id = id;
		this.pid = pid;
		this.fulldpid = fulldpid;
		this.dpcode = dpcode;
		this.deptname = deptname;
		this.fullname = fullname;
		this.dplevel = dplevel;
		this.areaid = areaid;
		this.dpid = dpid;
		this.datasources = datasources;
		this.opdt = opdt;
		this.ver = ver;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 0)
	public Double getId() {
		return this.id;
	}

	public void setId(Double id) {
		this.id = id;
	}

	@Column(name = "PID", precision = 0)
	public Double getPid() {
		return this.pid;
	}

	public void setPid(Double pid) {
		this.pid = pid;
	}

	@Column(name = "FULLDPID", nullable = false, length = 100)
	public String getFulldpid() {
		return this.fulldpid;
	}

	public void setFulldpid(String fulldpid) {
		this.fulldpid = fulldpid;
	}

	@Column(name = "DPCODE", nullable = false, length = 100)
	public String getDpcode() {
		return this.dpcode;
	}

	public void setDpcode(String dpcode) {
		this.dpcode = dpcode;
	}

	@Column(name = "DEPTNAME", length = 50)
	public String getDeptname() {
		return this.deptname;
	}

	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}

	@Column(name = "FULLNAME", length = 500)
	public String getFullname() {
		return this.fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	@Column(name = "DPLEVEL", precision = 0)
	public Double getDplevel() {
		return this.dplevel;
	}

	public void setDplevel(Double dplevel) {
		this.dplevel = dplevel;
	}

	@Column(name = "AREAID", nullable = false, precision = 0)
	public Double getAreaid() {
		return this.areaid;
	}

	public void setAreaid(Double areaid) {
		this.areaid = areaid;
	}

	@Column(name = "DPID", nullable = false, precision = 0)
	public Double getDpid() {
		return this.dpid;
	}

	public void setDpid(Double dpid) {
		this.dpid = dpid;
	}

	@Column(name = "DATASOURCES", nullable = false, precision = 0)
	public Double getDatasources() {
		return this.datasources;
	}

	public void setDatasources(Double datasources) {
		this.datasources = datasources;
	}

	@Column(name = "OPDT", nullable = false, length = 7)
	public Timestamp getOpdt() {
		return this.opdt;
	}

	public void setOpdt(Timestamp opdt) {
		this.opdt = opdt;
	}

	@Column(name = "VER", precision = 0)
	public Double getVer() {
		return this.ver;
	}

	public void setVer(Double ver) {
		this.ver = ver;
	}

}